//
//  AKRequestManager.h
//  AKPZ
//
//  Created by Lexi on 16-3-14.
//  Copyright (c) 2016年 aikangpeizhen. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AFNetworking.h"
#import "AFJSONRPCClient.h"

@interface AKRequestManager : NSObject

@property(nonatomic, readonly) AFJSONRPCClient *requestManager;
@property(nonatomic, readonly) AFHTTPRequestSerializer *normalRequestSerializer;

+ (AKRequestManager *)manager:(NSString *)baseUrl;  //访问除了UC以外的接口, 都是需要带上DC字段的
+ (AKRequestManager *)managerUCorDC:(NSString *)url;    //所有的usercenter和devicecenter是唯一的, 所以写死
+ (AKRequestManager *)managerNoToken:(NSString *)url;   //获取DC列表不需要token

// get ua ,version parameter
- (NSMutableDictionary *)defaultParameter;

// 某些用户请求需要添加更多地Header 头信息
- (void)addHeadersWithLoginInfo;

- (void)cancelAllRequest;

@end
